import React, {Component} from 'react';
import {Navigator} from 'react-native-deprecated-custom-components';
import FirstPageComponent from "./FirstPageComponent";
import MyTabNavigator from "../myComponent/MyTabNavigator";

 export  default  class NavigatorTest extends Component{
   render(){
     let defaultName='firstPageName';
     let defaultComponent=FirstPageComponent;
     // let defaultComponent=MyTabNavigator;
     return(
         <Navigator
          initialRoute={{name:defaultName,component:defaultComponent}}
          configureScene={
              ()=>{
                return Navigator.SceneConfigs.FloatFromRight
              }
          }
          renderScene={(route,navigator)=>{
            let  Component=route.component;
            return <Component {...route.params} navigator={navigator}/>
          }}
         >
         </Navigator>
     )
   }
 }